home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
eric.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-04
|
7KB
|
119 lines
@echo off
echo off
cls
IF NOT EXIST install.bat GOTO :wrongdrive
IF "%1" == "c:" GOTO :install
IF "%1" == "C:" GOTO :install
IF "%1" == "d:" GOTO :install
IF "%1" == "D:" GOTO :install
IF "%1" == "e:" GOTO :install
IF "%1" == "E:" GOTO :install
IF "%1" == "f:" GOTO :install
IF "%1" == "F:" GOTO :install
IF "%1" == "g:" GOTO :install
IF "%1" == "G:" GOTO :install
IF "%1" == "h:" GOTO :install
IF "%1" == "H:" GOTO :install
goto :badparam
:install
echo ╔════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Installation for the Demo of ERIC THE UNREADY ║
echo ║ ║
echo ║ ║
echo ║ This demo requires approximately 1.2 MBytes free disk space ║
echo ║ ║
echo ║ Press any key to create the directory ERICDEMO ║
echo ║ ║
echo ║ Press CTRL-BREAK to abort the installation process ║
echo ║ ║
echo ╚════════════════════════════════════════════════════════════════════════╝
pause
cls
echo Making the directory ERICDEMO
md %1ERICDEMO
echo Changing the directory on %1 to ERICDEMO
cd %1ERICDEMO
echo Copying files...
copy *.* %1
%1
IF EXIST eric_312.pic GOTO :ok
cls
echo ╔════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Installation for the Demo of ERIC THE UNREADY ║
echo ║ ║
echo ║ *** NOT SUCCESSFUL *** ║
echo ║ ║
echo ║ Did you have enough disk space? ║
echo ║ ║
echo ║ With DOS 5.0 type DIR to determine if you have enough free disk space, ║
echo ║ otherwise, type CHKDSK. ║
echo ║ ║
echo ║ This demo requires approximately 1.2 MBytes free disk space. ║
echo ║ ║
echo ║ NOTE: You can run the demo from the floppy by typing ║
echo ║ B: (or A: if your 3½ drive is A:) ║
echo ║ Then type: ║
echo ║ DEMO ║
echo ║ or, to run the demo with Roland MT-32 compatible sound, type: ║
echo ║ DEMO MT32 ║
echo ║ ║
echo ╚════════════════════════════════════════════════════════════════════════╝
goto :exit
:ok
erase install.bat
cls
echo ╔════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Installation for the Demo of ERIC THE UNREADY ║
echo ║ ║
echo ║ *** COMPLETE *** ║
:ready
echo ║ ║
echo ║ To run the demo type: ║
echo ║ DEMO ║
echo ║ ║
echo ║ To run the demo with Roland MT-32 compatible sound type: ║
echo ║ DEMO MT32 ║
echo ║ ║
echo ╚════════════════════════════════════════════════════════════════════════╝
goto :exit
:wrongdrive
IF NOT EXIST demo.exe GOTO :notready
IF NOT EXIST eric_312.pic GOTO :notready
echo ╔════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Installation for the Demo of ERIC THE UNREADY ║
echo ║ ║
echo ║ The installation seems to have been completed previously... ║
goto :ready
:notready
echo ╔════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Installation for the Demo of ERIC THE UNREADY ║
echo ║ ║
echo ║ Please run the INSTALL from the floppy. ║
echo ║ ║
echo ║ This installation will create the directory ERICDEMO on your hard ║
echo ║ drive, and then copy the files from the floppy to the new directory. ║
goto :how
:badparam
echo ╔════════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Installation for the Demo of ERIC THE UNREADY ║
echo ║ ║
echo ║ Please specify which drive you wish to install to. ║
:how
echo ║ ║
echo ║ For example, to install the demo to your C: drive from your B: drive ║
echo ║ C: ║
echo ║ CD \ ║
echo ║ B: ║
echo ║ INSTALL C: ║
echo ║ ║
echo ║ This demo requires approximately 1.2 MBytes free disk space ║
echo ║ ║
echo ╚════════════════════════════════════════════════════════════════════════╝
:exit